import { createRouter, createWebHistory } from 'vue-router';
import TestPage from '@/views/TestPage.vue';
import ResultPage from '@/views/ResultPage.vue';
import StudentManage from '@/views/StudentManage.vue';
import ClassResult from '@/views/ClassResult.vue';

const routes = [
    { path: '/', redirect: '/test' },
    { path: '/test', component: TestPage },
    { path: '/result', component: ResultPage },
    { path: '/students', component: StudentManage },
    { path: '/stats', component: ClassResult }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
